home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / CMD-OVER.HLP < prev    next >
Text File  |  1987-04-05  |  5KB  |  118 lines

  1.                            Overview of DOS Commands
  2.  
  3. DOS has a set of utility programs known as "DOS Commands."  These utility
  4. programs perform important tasks which help you operate and manage your computer
  5. applications.
  6.  
  7. To execute a DOS command, you type the name of the command followed by one or
  8. more "parameters" (items).  Some commands, such as CLS (to clear the screen),
  9. have no parameters.  To execute CLS you simply type CLS and press the return
  10. key.  Most commands, however, have several parameters that can be entered.  The
  11. parameters give the command specific instructions about the task to be
  12. performed.
  13.  
  14. Some command parameters are required, some are optional, some are choices and
  15. others may be repeated as needed.  In all cases, the order in which the
  16. parameters are entered is important.  The parameters must be entered in the
  17. particular order that the command understands.
  18.  
  19. To explain the parameters of DOS commands, a special notation is used in DOS
  20. reference material.  This notation, called the "Format Notation," shows all the
  21. parameters of a command, the order in which they are entered, and whether they
  22. are required, optional, choices and so on.
  23.  
  24. HelpDOS uses the same Format Notation as the DOS manual.  It is important that
  25. you understand the simple rules used in the Format Notation.  By understanding
  26. the Format Notation you can easily interpret how a command should be entered.
  27.  
  28. The Format Notation rules are explained below.  They are also summarized in
  29. HelpDOS' help window (activated with F1) for quick reference.
  30.  
  31.  
  32.                             Format Notation Rules
  33.  
  34. KEYWORDS:  Keywords are shown in capital letters.  Keywords must be entered as
  35.    shown.  You may enter keywords in any combination of upper and lower case
  36.    letters.
  37.  
  38. LOWERCASE LETTERS:  You supply the items shown in lowercase letters.  For
  39.    example, where "filename" appears, you substitute the name of your file.  You
  40.    may enter your items in any combination of upper and lower case letters
  41.    (unless specified otherwise in the help text).
  42.  
  43. BRACKETS [ ]:  Items in brackets are optional.  If you include optional items,
  44.    you supply only the information inside the brackets.  The brackets are not a
  45.    part of the command, they are used for Format Notation only.
  46.  
  47. BAR |:  Items separated by a bar are choices.  The bar means "or."  For example,
  48.    ON | OFF means you may enter ON or OFF, but not both.  The bar is not a part
  49.    of the command, it is used for Format Notation only.
  50.  
  51. ELLIPSIS (...) :  Three periods indicate you may repeat the previous item as
  52.    many times as you need.  This notation applies only to a few commands.  The
  53.    periods are not a part of the command, they are used for Format Notation
  54.    only.
  55.  
  56.  
  57.                            Format Notation Examples
  58.  
  59. In the CHDIR (change directory) command both parameters, d: and path, are
  60. optional since they are enclosed in brackets.
  61.  
  62.           CHDIR [d:][path]
  63.  
  64.  
  65. In the RMDIR (remove directory) command, the parameter d: is optional but the
  66. path must be specified.
  67.  
  68.           RMDIR [d:]path
  69.  
  70.  
  71. The BREAK command has one optional parameter, which can be either of the
  72. Keywords ON or OFF, but not both.  You could enter BREAK, (with no parameter),
  73. BREAK ON or BREAK OFF.  Note that BREAK ON OFF would be invalid.
  74.  
  75.           BREAK [ON | OFF]
  76.  
  77.  
  78. The ASSIGN command illustrates the Ellipsis notation (...), which indicates
  79. that the previous parameter, [x=y] may be repeated as many times as needed.
  80. Valid uses of ASSIGN are:  ASSIGN (with no parameters), ASSIGN a=b,
  81. ASSIGN a=b b=c, ASSIGN a=b b=c c=d, and so on.
  82.  
  83.           ASSIGN [x=y [...]]
  84.  
  85.  
  86.                      Default Drive and Directory Path
  87.  
  88. For many DOS commands, specifying a disk drive letter is optional.  This is
  89. shown in the format of a command by [d:]. If you omit an optional drive letter,
  90. DOS assumes the default drive is to be used.  For example, if the default drive
  91. is A and you want to see a directory list for the disk in drive B, you must
  92. specify the drive letter, as in DIR B:  But if you want to see the directory for
  93. the disk in the default drive, you may omit the drive letter, and enter just
  94. DIR.
  95.  
  96. Similarly, for many DOS commands, specifying the directory path is optional.
  97. This is shown in the format of a command by [path].  If you do not specify a
  98. directory path, DOS will assume the current directory is to be used.
  99.  
  100.  
  101.                        Internal and External Commands
  102.  
  103. DOS commands are either "internal" or "external."  Internal commands are
  104. resident in memory and may be executed at any time under DOS.  External commands
  105. reside on disk and are loaded into memory for execution.  The files of external
  106. commands are called "command files" and have the filename extension of .COM or
  107. .EXE.  For example, the file containing the DISKCOMP command is DISKCOMP.COM.  A
  108. disk containing the appropriate command file must be in use for an external
  109. command to be executed.
  110.  
  111. In the HelpDOS help files, the first line tells if the command is internal or
  112. external.  Below is the first line of the help text for the DISKCOMP command.
  113.  
  114.       ---------------  DISKCOMP - External DOS Command  ---------------
  115.  
  116. This indicates that the help text is for DISKCOMP, and that DISKCOMP is an
  117. external DOS command.
  118.